package com.example.mannortycoon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mannortycoon.dao.TradeDao;
import com.example.mannortycoon.entity.TradeEntity;
import com.example.mannortycoon.uitl.R;
import com.example.mannortycoon.vo.TradeVO;

import java.util.List;

public interface TradeService extends IService<TradeEntity> {
    List<TradeVO> listTrade(Long userId,Integer type);

    R put(Long userId, TradeEntity tradeEntity);

    R trade(Long userId, Long id, Integer number);
}
